﻿@* Namespace *@
@using EFDataModel.Enums

<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>@* Basis Css Klasse und JavaScript Klasse *@
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
     @* Die Libraries direkt per Google Link beziehen http://code.google.com/intl/de-DE/apis/libraries/devguide.html *@
   @* <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script>*@

    @* JavaScript und Css Klassen für UI Veränderungen wie den Datepicker *@
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.datepicker.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.18.min.js")" type="text/javascript"></script>
    @* JavaScript Code für das Filtern der Tabellen und "X" für die Input Felder, eigenes Plugin  *@
    <script src="@Url.Content("~/Scripts/jquery.plugins.squadwuschel.1.0.11.js")" type="text/javascript"></script>
</head>
@Html.Partial("_JavaScriptMainPage")
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>@Resources.PageTitles.StartPageRESX</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div class="clear-all" />
            <div id="menucontainer">
                <table class="navigationTable" width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td>
                            <ul id="menu">
                                <li>@Html.ActionLink(Resources.Navigation.HomeLinkRESX, EActionHome.Index.ToString(), EControllers.Home.ToString())</li>
                                <li>@Html.ActionLink(Resources.Navigation.ImpressumRESX, EActionHome.Impressum.ToString(), EControllers.Home.ToString())</li>
                                <li>@Html.ActionLink(Resources.Navigation.ContactFormularRESX, EActionHome.Contact.ToString(), EControllers.Home.ToString())</li>
                                @if (WebRights.Right().Check(EUserRights.UserModule)) { <li>@Html.ActionLink(Resources.Navigation.UsersRESX, EActionUser.UserList.ToString(), EControllers.User.ToString())</li>}
                                @if (WebRights.Right().IsAdmin()) { <li>@Html.RouteLink(Resources.Navigation.AdministrationRESX, RouteNames.Categories.ToString(), new { controller = EControllers.Administration.ToString(), category = EFDataModel.Enums.EFCategoryTypes.UserRights.ToString(), action = EActionAdministration.CategoriesList.ToString() })</li> }
                            </ul>
                        </td>
                        <td>
                            <div id="breadLink">
                                <strong>
                                    @Html.BreadScrumb().CreateBreadScrumb()
                                </strong>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="main">
            <div>
                @{ //Wenn der Admincontroller aufgerufen wird, dann wird hier die passende Navigation angezeigt.
                    if (Html.CurrentController() == EControllers.Administration || Html.CurrentController() == EControllers.DynamicData)
                    {
                    @Html.Partial("_AdminLinks");
                    }

                    //Wenn es sich um den UserController handelt der angezeigt wird, die passendne UserLinks anzeigen
                    if (Html.CurrentController() == EControllers.User && WebRights.Right().Check(EUserRights.UserModule))
                    {
                    @Html.Partial("_UserLinks");
                    }
                }
            </div>
            <div>
                @RenderBody()
            </div>
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
